<!doctype html>
<html lang="zh">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />
	<title>{{$data.title}}</title>
	<meta name="keywords" content="{{$data.title}}" />
	<meta name="description" content="{{$data.title}}" />
	<meta name="LinkArtifact" content="7000c2fd0c1eff6fc7c2d4b66ac23916">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<!-- QQ互联 -->
	<meta property="qc:admins" content="3566762547627031606375" />
	<link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

	<style type="text/css">
		body {
			_behavior: url({{$smarty.const.APP_URL}}resource/htc/csshover.htc);
		}
	</style>

	<link href="{{$smarty.const.APP_URL}}templates/default/css/base.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/home_header.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/home_login.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}templates/default/css/index-new.css" rel="stylesheet" type="text/css">
	<link href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="{{$smarty.const.APP_URL}}templates/default/css/user_center/purchase_release.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}templates/default/css/user_center/member_safe.css" rel="stylesheet" type="text/css">
	<!--[if IE 7]>
	<link rel="stylesheet" href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome-ie7.min.css">
	<![endif]-->
	<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!--[if lt IE 9]>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/html5shiv.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/respond.min.js"></script>
	<![endif]-->
	<!--[if IE 6]>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/IE6_PNG.js"></script>
	<script>
		DD_belatedPNG.fix('.pngFix');
	</script>
	<script>
		// <![CDATA[
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand))
try{
document.execCommand("BackgroundImageCache", false, true);
   }
catch(e){}
// ]]>
</script>
<![endif]-->
	<script>
		var COOKIE_PRE = 'BC18_';var _CHARSET = 'utf-8';var SITEURL = 'http://zhaojinyin.cc';var RESOURCE_URL = 'http://zhaojinyin.cc/data/resource';var TEMPLATES_URL = 'http://zhaojinyin.cc/templates/default';
	</script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/common.js" charset="utf-8"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/ui/$.ui.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.validation.min.js"></script>
	<script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.masonry.js"></script>
    <!--<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>-->
	<script src="{{$smarty.const.APP_URL}}data/resource/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
	<script type="text/javascript">
	<!-- 左侧下拉列表箭头变化jq -->
	$(document).ready(function(){
  		$(".wrap-menu-li1").click(function(){
    		//$(this).css("background-position","180px top");
			if($(this).css("background-position")=='180px 100%'){
					$(this).css("background-position","180px top");
				}
			else {
					$(this).css("background-position","180px bottom");
				};
 	 	});
	});
	<!-- 右侧内容隐藏下拉列表jq -->
	$(document).ready(function(){
  		$(".biaoti_1").click(function(){
  		$(".xuanze_2_hide").toggle(1000);
  		});
	});
</script>
</head>
<body style="min-width: 1200px;">
<!--会员中心头部start-->
{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_header.html"}}
<!--会员中心头部end-->
<!-- 本页头部start -->
{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_top.html"}}
<!--本页头部end-->
<!-- 中间内容 -->
<section>
	<div id="main">
        <!-- 左边start -->
		{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_lefter.html"}}
		<!--左边end-->
        <!-- 右边 -->
    	<div class="main-right pt20 pl40">
    		<div class="right-title">
				<a href="/user_center/member_safe" ><div class="right-title1">安全设置</div></a>
    		</div>
    		<div class="right-realname">
    			<div class="real-title">
    				请添加证件信息<span style="color: #aaa;font-size: 12px;margin-left: 20px;"></span>
    			</div>
    			<div class="real-content">
    				<table class="pt50">
						<form method="post" action="/user_center/member_safe_license_post" enctype="multipart/form-data">
							<tr>
								<td class="content-td1">证件名</td>
								<td><input name="license_name" class="input-text" type="text"/> </td>
								<td class="content-td2">请填写您要上传的证件名</td>
							</tr>

							<tr>
								<td class="content-td1">上传证件照片</td>
								<td><input name="license_image_url" type="file"/></td>
								<td class="content-td2">图片大小不得超过2M</td>
							</tr>
							<tr>
								<td></td>
								<td colspan="2" class="content-td2">（盗用他人信息涉嫌违法，请使用真实信息进行认证）</td>
							</tr>
							<tr>
								<td colspan="3">
									<input type="submit" class="input-submit" value="提交"/>
								</td>
							</tr>
						</form>
					</table>
    			</div>
				<div class="real-title">
					已添加证件<span style="color: #aaa;font-size: 12px;margin-left: 20px;"></span>
				</div>
				<div class="real-content">
				<table style="width: 100%;background:#fff;">
					<tr>
						<td>序号</td>
						<td>证件名</td>
						<td>缩略图</td>
						<td>操作</td>
					</tr>
					{{foreach from=$license_list item=i key=k}}
					<tr>
						<td>{{$k+1}}</td>
						<td>{{$i.license_name}}</td>
						<td><img src="{{$i.license_image_url}}" width="75" height="75"></td>
						<td><a style="color: #ff6e03;" href="javascript:void(0);license_del({{$i.license_id}});">删除</a></td>
					</tr>
					{{/foreach}}
				</table>
				</div>
    		</div>
    	</div>
    </div>
    <div style="clear:both;"></div>
	<!--底部start-->
	{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_footer.html"}}
	<!--底部end-->
</section>
<!-- 左侧下拉菜单js样式 -->
<script>
	// var wrap-menu-center=document.getElementsByClassName('wrap-menu-li1');
	//var menu_ul=wrap-menu-center.getElementsByTagName('ul');
	function changebn(obj){
			if(obj.nextElementSibling.style.display=='none'||obj.nextElementSibling.style.display==''){
				obj.nextElementSibling.style.display='block';
			}else{
				obj.nextElementSibling.style.display='none';
			}
		}

	function license_del(id){
		//alert(id);return;
		if(window.confirm('你确定要删除此证件吗？')){
			//alert("确定");
			var license_id=id;  //ID
			var url='/user_center/ajax_license_del';
			$.ajax({
				url: url,
				data:{
					license_id:license_id
				},
				type:'POST',
				cache:false,
				dataType:'json',
				success:function(data){
					if(data.msg =="ok" ){
						location.reload();
						//self.location=document.referrer;
					}else{
						alert(data.msg);return;
					}
				},
				error : function() {
					alert("AJAX异常！");
				}
			});
		}else{
			//alert("取消");
//			history.back(-1);
		}

	}
</script>
</body>
</html>